package com.song.onetomany.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author 宋伟宁
 * @Date 2023/9/11
 * @Version 1.0
 **/
@Data
public class Dept implements Serializable {

    private Integer did;
    private String dname;
    //注意：此处必须new
    private List<Emp> emps = new ArrayList<>();

}
